import Http from '@/http'
export function listApi() {
    return Http.get('privateDevice/list')
}

export function bindDeviceApi(id:number) {
    return Http.post('privateDevice/bind', {id})
}
export function unbindDeviceApi(id:number) {
    return Http.post('privateDevice/unbind', {id})
}


export function membersApi(id) {
    return Http.get('privateDevice/members/' + id)
}

export function bindUserApi(id:number, phone) {
    return Http.post('privateDevice/bind/member', {id, phone})
}

export function unbindUserApi(id:number, user) {
    return Http.post('privateDevice/unbind/member', {id, user})
}